package com.gzcsqic.excelapp;

import com.gzcsqic.excelapp.service.SystemService;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.io.IOException;

@Component
public class ExcelApplicationRunner implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) throws Exception {
        try {

            Runtime.getRuntime().exec("cmd  /c  start  http://localhost");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
